package miku.firstgame.net.pack
{
	import flash.utils.ByteArray;

	import miku.firstgame.net.ByteArrayEx;

	public class AbstractReponsePack implements IReceivePack
	{
		protected var data:ByteArrayEx;

		public function AbstractReponsePack(data:ByteArrayEx)
		{
			this.data = data;
		}

		public function decode():void
		{
			//前两位是tag,后两位是状态 0x0001是加密 ,0x0002是其他值
			data.position = 0;
		}

		public function get tag():int
		{
			return 0;
		}

	}
}
